package com.hx.dc.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hx.dc.entity.DcEmployee;
import com.hx.dc.service.DcEmployeeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by death on 2019/2/13.
 */
@Service("dcEmployeeService")
public class DcEmployeeServiceImpl extends BaseServiceImpl<DcEmployee> implements DcEmployeeService {

    @Override
    public DcEmployee login(DcEmployee dcEmployee) {

        dcEmployee = this.dcEmployeeMapper.select(dcEmployee);
        if(null==dcEmployee){
            return null;//用户账号和密码不存在或不匹配
        }
        return dcEmployee;
    }
}

